
package com.imu.purse.modules.app.entity;


import com.imu.common.validator.group.UpdateGroup;
import com.imu.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;


/**
 * 用户信息
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-21 10:11:22
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_user_log")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class ImuUserLogEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//操作用户ID
	@Column(name="userid")
	private Integer userId;
	
	//操作管理员名
	@Column(name="opername")
	private String operName;
	
	//电话
	@Column(name="phone")
	private String phone;
	
	//操作动作
	@Column(name="operaction")
	private Integer operaction;
	
	//备注
	@Column(name="remark")
	private String remark;
	
	//操作时间
	@Column(name="opertime")
	private Date opertime;
	

}
